package cn.kgc.ssm.controller;

import cn.kgc.ssm.dto.LogInfoPageDTO;
import cn.kgc.ssm.response.ResponseResult;
import cn.kgc.ssm.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/11/22
 * @description
 */
@RestController
@RequestMapping("log")
public class LogInfoController {


    @Autowired
    private LogInfoService logInfoService;


    // 分页
    @GetMapping("page")
    public ResponseResult  logInfoPage(LogInfoPageDTO logInfoPageDTO){

      return   logInfoService.logInfoPage(logInfoPageDTO);
    }

    @PostMapping("delete")
    public ResponseResult  deleteLogInfo(@RequestBody List<Integer> ids){

        return   logInfoService.deleteLogInfo(ids);
    }



}
